module.exports = {
  publicPath: '/systemManage',
  devServer: {
    port: 6606 //项目本地运行端口号
  },
  productionSourceMap: false,
  configureWebpack: config => {
    if (process.env.NODE_ENV === 'production') {
      // 清空console，如果线上出现问题需要查看输出信息，则注释以下代码，解决完问题后记得取消注释
      config.optimization.minimizer[0].options.terserOptions.compress.warnings = false;
      config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
      config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true;
      config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = ['console.log'];
    }
  }
};
